/*
 * This file (AkPollock.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package alkwarel.brushes;

import alkwarel.objects.AkArtspace;
import alkwarel.objects.AkStampBrush;
import artx.utils.AxRandom;

/**
 * @author Samuel Huron
 *
 */
public class AkPollock extends AkStampBrush {

	/**
	 * Standard Constructor
	 */
	public AkPollock() {
		super(4, "pollock");
	}

	/**
	 * @see alkwarel.objects.AkStampBrush#DrawStamp(alkwarel.objects.AkArtspace, float, float)
	 */
	public void DrawStamp(AkArtspace a, float posx, float posy) {
		float dx = AxRandom.RandF(a.width);
		float dy = AxRandom.RandF(a.height);
		
		a.strokeWeight(1);
		a.line(posx,posy,dx,dy);

		float test1 = AxRandom.RandF(1,30);
		float test = AxRandom.RandF(1,test1);
		float largeur = AxRandom.RandF(1,test);
		a.ellipse(dx,dy, largeur, largeur);
	}



}
